home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / BROWSERS / GLUESTIK.ZOO / drivers.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-04  |  973 b   |  54 lines

  1. #include <string.h>
  2. #include "global.h"
  3. #include "patchlev.h"
  4.  
  5. CONFIG driver_config;
  6. DRV_LIST driver = {MAGIC, do_get_dftab, do_ETM_exec, &driver_config};
  7.  
  8. TPL trampoline = {
  9.   TRANSPORT_DRIVER,
  10.   "Scott Bigham (GlueSTiK\277 v" GS_VERSION ")",
  11.   "01.07",
  12.   do_KRmalloc,
  13.   do_KRfree,
  14.   do_KRgetfree,
  15.   do_KRrealloc,
  16.   do_get_err_text,
  17.   do_getvstr,
  18.   do_carrier_detect,
  19.   do_TCP_open,
  20.   do_TCP_close,
  21.   do_TCP_send,
  22.   do_TCP_wait_state,
  23.   do_TCP_ack_wait,
  24.   do_UDP_open,
  25.   do_UDP_close,
  26.   do_UDP_send,
  27.   do_CNkick,
  28.   do_CNbyte_count,
  29.   do_CNget_char,
  30.   do_CNget_NDB,
  31.   do_CNget_block,
  32.   do_housekeep,
  33.   do_resolve,
  34.   do_ser_disable,
  35.   do_ser_enable,
  36.   do_set_flag,
  37.   do_clear_flag,
  38.   do_CNgetinfo
  39. };
  40.  
  41. DRV_HDR *do_get_dftab(char *tpl_name)
  42. {
  43.   /* we only have the one, so this is pretty easy... ;) */
  44.   if (strcmp(tpl_name, trampoline.module) != 0)
  45.     return 0;
  46.   return (DRV_HDR *)&trampoline;
  47. }
  48.  
  49. int16 do_ETM_exec(char *tpl_name)
  50. {
  51.   /* even easier... ;) */
  52.   return 0;
  53. }
  54.